package com.frank.oj.service.entity.user;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.frank.model.entity.user.Role;
import com.frank.model.entity.user.UserRole;
import com.frank.oj.model.vo.UserRolesVO;

import java.util.List;

/**
 * @author frank
 * @Date 2023/12/17
 */
public interface UserRoleEntityService extends IService<UserRole> {

    UserRolesVO getUserRoles(String uid, String username);

    List<Role> getRolesByUid(String uid);

    IPage<UserRolesVO> getUserList(int limit, int currentPage, String keyword, Boolean onlyAdmin);

    void deleteCache(String uid, boolean isRemoveSession);

    String getAuthChangeContent(int oldType,int newType);
}
